﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PS.WSSDeploy.Client
{
    public class RootFile
    {
        public string Path { get; set; }

        public string DeploymentPath { get; set; }

        public byte[] Content { get; set; }

        public override string ToString()
        {
            return string.Format("[DeploymentPath:'{0}']", DeploymentPath);
        }

        public override bool Equals(object other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;

            if (other is RootFile)
            {
                var theOther = other as RootFile;
                return Path.Equals(theOther.Path) && DeploymentPath.Equals(theOther.DeploymentPath);
            }
            return false;
        }
    }
}
